<script setup>
defineProps({
  title: String
})
</script>
<template>
  <el-card style="max-width: 100%; height: 100%">
    <template #header>
      <div class="card-header">
        <span class="title">{{ title }}</span>
        <slot name="extra"></slot>
      </div>
    </template>
    <slot></slot>
  </el-card>
</template>
<style scoped lang="less">
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.title {
  font-size: 16px;
  font-weight: bold;
  color: #2176d2;
}
</style>
